2004-11-03 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtklabel.c (gtk_label_set_pattern_internal): Allow
+ unsetting a pattern by passing NULL. (#156720, Tristan Van Berkom)
+
* gtk/gtkcombobox.c (gtk_combo_box_get_active): Don't crash
if the active_row reference has become invalid. (#157156,
Christophe Fergeau)
2004-11-03 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtklabel.c (gtk_label_set_pattern_internal): Allow
+ unsetting a pattern by passing NULL. (#156720, Tristan Van Berkom)
+
* gtk/gtkcombobox.c (gtk_combo_box_get_active): Don't crash
if the active_row reference has become invalid. (#157156,
Christophe Fergeau)
2004-11-03 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtklabel.c (gtk_label_set_pattern_internal): Allow
+ unsetting a pattern by passing NULL. (#156720, Tristan Van Berkom)
+
* gtk/gtkcombobox.c (gtk_combo_box_get_active): Don't crash
if the active_row reference has become invalid. (#157156,
Christophe Fergeau)
2004-11-03 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtklabel.c (gtk_label_set_pattern_internal): Allow
+ unsetting a pattern by passing NULL. (#156720, Tristan Van Berkom)
+
* gtk/gtkcombobox.c (gtk_combo_box_get_active): Don't crash
if the active_row reference has become invalid. (#157156,
Christophe Fergeau)
PangoAttrList *attrs;
g_return_if_fail (GTK_IS_LABEL (label));
- attrs = gtk_label_pattern_to_attrs (label, pattern);
+ if (pattern)
+ attrs = gtk_label_pattern_to_attrs (label, pattern);
+ else
+ attrs = NULL;
if (label->effective_attrs)
pango_attr_list_unref (label->effective_attrs);